﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Transactions;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using KingRoad.EPM.SafetyManagementEntity.Model;
using Unis.Framework.RuleBase.Common;

namespace KingRoad.EPM.SafetyManagementDAL.ScmCostPlanMainService
{
    /// <summary> 
    /// 文件生成时间 2017/2/6 14:13:29
    /// </summary> 
    public class ScmCostplanmainService : BaseService<ScmCostplanmainInfo>, IScmCostplanmainService
    {
        public int UpdateCostPlanmainState(string section, DateTime yearmonth)
        {
            using (TransactionScope scope = new TransactionScope())
            {
                int ret = DatabaseExcuteByXmlHelper.NewInstance.ExecuteNonQuery("ScmCostplanmain", "UpdateCostPlanmainState", section, yearmonth);
                scope.Complete();
                return ret;

            }

        }
    }

}

